package com.wuxi.common.pojo;

import lombok.Data;

import java.util.Objects;

@Data
public class VehicleInfo {

    private String vehicleId;

    private Integer errors;

    private Integer warnings;

    private Integer fatales;

    private Integer notices;

    private String errorDetails;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        VehicleInfo that = (VehicleInfo) o;
        return Objects.equals(vehicleId, that.vehicleId) &&
                errors == that.errors &&
                fatales == that.fatales &&
                notices == that.notices &&
                warnings == that.warnings &&
                Objects.equals(errorDetails, that.errorDetails);
    }

    @Override
    public int hashCode() {
        return Objects.hash(vehicleId, errors, fatales, notices, warnings, errorDetails);
    }
}
